import request from '@/utils/request'

// 登录
export function login(username, password) {
  return request({
    url: '/auth/auth/login',
    method: 'post',
    params: {
      username,
      password
    }
  })
}

// 获取用户信息
export function getUserInfo() {
  return request({
    url: '/auth/info',
    method: 'post'
  })
}

// 退出登录
export function logout() {
  return request({
    url: '/auth/logout',
    method: 'post'
  })
}